<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" href="../../js\Calendar\tcal.css" rel="stylesheet" />
<script type="text/javascript" src="../../js\Calendar\tcal.js" ></script>
<style type="text/css">
	body{
			background-image: url("../../images/bg.gif");
		}
	table{
		background-image: url("../../images/bgbg3.jpg");
	}
		
	td{
		padding: 0.5em;
	}
	
	#foot{
		text-align: center;
	}
	
	.btn{
	width:140px;
	height:36px;
	line-height:18px;
	font-size:18px;
	background:url("../../images/button.jpg") no-repeat left top;
	color:#FFF;
	padding-bottom:4px
	} 
</style>
<script type="text/javascript">
	function showWin(url){
		window.open(url, '选择试卷');
	}
</script>
<title>考试添加</title>
</head>
<body>
<s:form action="exam.action" namespace="admin/exam" method="post" theme="simple">
<s:hidden name="action" value="editsave"/>
<s:hidden name="paperId" id="paperId"/>
<s:hidden name="id" value="%{id}"/>
<table width="100%" border="0">
  <caption align="left" style="background-image: url('../../images/bg1.gif');">
    考试安排信息
  </caption>
  <tr>
    <td align="right" width="120px">考试名称：</td>
    <td><s:textfield name="name" cssStyle="width:150px;"></s:textfield></td>
  </tr>
  <tr>
    <td align="right">有效时间：</td>
    <td><s:textfield name="startTime" onclick="setday(this)" readonly="true" cssClass="tcal"></s:textfield>
    至<s:textfield name="endTime" onclick="setday(this)" readonly="true" cssClass="tcal"></s:textfield></td>
  </tr>
  <tr>
    <td align="right">备注：</td>
    <td><s:textarea name="remark" rows="5" cols="15" cssStyle="font-size:9pt;heigth:84px;width:70%;"></s:textarea></td>
  </tr>
  
  <tr>
    <td align="right">试卷：</td>
    <td><s:textfield name="paperName" id="paperName" cssStyle="width:431px;" readonly="true"></s:textfield>
      <input type="button" value="选择试卷" id="selectPaper" onclick="showWin('${pageContext.request.contextPath}/admin/paper/paper.action?action=selectPaper')" /><!-- onclick="javascript:location.href='${pageContext.request.contextPath}/admin/paper/paper.action?action=selectPaper'" -->
    </td>
  </tr>
  <tr>
    <td colspan="2" id="foot">
    <s:submit value="确认修改" cssStyle="font-size:9pt;" cssClass="btn" onmouseover="this.style.backgroundPosition='left -36px'" onmouseout="this.style.backgroundPosition='left top'" ></s:submit>
        <input type="button" style="font-size:9pt;" value="返回" onclick="history.back(-1)" class="btn" onmouseover="this.style.backgroundPosition='left -36px'" onmouseout="this.style.backgroundPosition='left top'" />
    </td>
  </tr>
</table>
</s:form>
</body>
</html>